import { createRouter, createWebHistory } from 'vue-router'
import index from '../views/index.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: index
  },
 {
  path:'/person',
  component:() => import('@/views/PerSen.vue')
 },
 {
  path:'/fenlei',
  component:() => import('@/views/FenLei.vue')
 },
 {
  path:'/buycard',
  component:() => import('@/views/BuyCard.vue')
 }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
